package com.zh.jbet.core.entity;

public class BetContextEntity implements Bet {
    private Long id;
    private PlayerGame joinedGame;
    private Player player;
    private Integer point;
    private Long gameId;
    private boolean filled;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Override
    public Player getPlayer() {
        return player;
    }

    public void setPlayer(Player player) {
        this.player = player;
    }

    @Override
    public Long getGameId() {
        return gameId;
    }

    public void setGameId(Long gameId) {
        this.gameId = gameId;
    }

    @Override
    public Integer getPoint() {
            return point;
    }

    public void setPoint(Integer point) {
            this.point = point;
    }

    @Override
    public boolean isFilled() {
        return filled;
    }

    public void setFilled(boolean filled) {
        this.filled = filled;
    }
    
    public PlayerGame getJoinedGame() {
        return joinedGame;
    }

    public void setJoinedGame(PlayerGame joinedGame) {
        this.joinedGame = joinedGame;
    }

    @Override
    public Long getPlayerGameId() {
        return joinedGame.getId();
    }
}
